<!-- 代码已包含 CSS：使用 TailwindCSS , 安装 TailwindCSS 后方可看到布局样式效果 -->

<template>
  <div
    class="relative w-full max-w-[375px] mx-auto overflow-hidden bg-white text-gray-800 font-sans"
  >
    <!-- Navbar -->
    <nav class="fixed top-0 left-0 right-0 bg-white z-10 shadow-sm">
      <div class="px-4 py-3 flex items-center justify-between">
        <div class="flex items-center space-x-2">
          <!-- <i class="fas fa-chevron-left text-gray-600 fa-icon w-6 h-6"></i> -->
          <h1 class="text-lg font-medium">{{ name }}</h1>
        </div>
        <!-- <a href="#" class="text-primary text-sm font-medium">活动规则</a> -->
      </div>
    </nav>

    <!-- Main Content -->
    <main class="pt-16 pb-32 h-full">
      <!-- Banner -->
      <div class="relative rounded-xl overflow-hidden mb-2 h-40">
        <img :src="banner" alt="活动banner" class="w-full h-full" />
        <div
          class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-4"
        >
          <!-- <h2 class="text-white font-bold text-lg mb-1">积分排行榜</h2> -->
          <!-- <p class="text-white/90 text-sm">活动时间：2023.11.01-2023.11.30</p> -->
        </div>
      </div>

      <!-- 资讯轮播 -->
      <div class="news-bar-wrapper">
        <div class="news-label">
          <van-icon name="volume-o" class="news-icon" />
          <span>资讯</span>
        </div>
        <div class="news-content">
          <van-notice-bar 
            v-if="newsList.length > 0"
            left-icon="" 
            :scrollable="false"
            color="#ff4d4f"
            background="transparent"
          >
            <van-swipe
              vertical
              class="notice-swipe"
              :autoplay="3000"
              :show-indicators="false"
            >
              <van-swipe-item 
                v-for="(item, index) in newsList" 
                :key="index"
                @click="goToNewsDetail(item)"
              >
                {{ item.title }}
              </van-swipe-item>
            </van-swipe>
          </van-notice-bar>
          <van-notice-bar
            v-else
            text="暂无资讯"
            color="#ff4d4f"
            background="transparent"
          />
        </div>
      </div>

      <!-- 三个按钮（纯文字） -->
      <div class="action-buttons">
        <div class="action-btn text-only" @click="contentShow = true">
          活动规则
        </div>
        <div class="action-btn text-only" @click="goToActivityGoods">
          活动商品
        </div>
        <div class="action-btn text-only" @click="goToNewsList">活动资讯</div>
      </div>

      <div class="activity-card">
        <div class="card-header">
          <span class="rules-label">奖项设置</span>
        </div>

        <div class="rules-content">
          <p>{{ info }}</p>
        </div>
        <div class="rules-content" style="text-align: center">
          <div class="time-tag">
            <svg
              class="time-svg"
              viewBox="0 0 1024 1024"
              xmlns="http://www.w3.org/2000/svg"
              aria-hidden="true"
            >
              <path
                d="M475.451077 588.012308h73.097846A36.233846 36.233846 0 0 0 585.097846 551.384615a36.233846 36.233846 0 0 0-36.548923-36.78523h-73.097846A36.233846 36.233846 0 0 0 438.902154 551.384615a36.233846 36.233846 0 0 0 36.548923 36.706462z m0 146.983384h73.097846a36.233846 36.233846 0 0 0 36.548923-36.78523 36.233846 36.233846 0 0 0-36.548923-36.706462h-73.097846a36.233846 36.233846 0 0 0-36.548923 36.706462 36.233846 36.233846 0 0 0 36.548923 36.78523zM877.489231 73.728H731.214769V37.021538A36.233846 36.233846 0 0 0 694.744615 0.236308a36.233846 36.233846 0 0 0-36.470153 36.78523v36.706462H365.804308V37.021538A36.233846 36.233846 0 0 0 329.255385 0.236308a36.233846 36.233846 0 0 0-36.470154 36.78523v36.706462H146.510769c-80.344615 0-146.195692 66.166154-146.195692 146.983385v587.69723c0 80.817231 65.772308 146.983385 146.195692 146.983385h730.820923c80.344615 0 146.195692-66.166154 146.195693-146.983385V220.711385A146.983385 146.983385 0 0 0 877.410462 73.728z m73.097846 734.680615a73.491692 73.491692 0 0 1-73.097846 73.491693H146.510769a73.491692 73.491692 0 0 1-73.097846-73.491693V367.616h877.016615v440.792615z m0-514.284307H73.491692v-73.412923c0-40.408615 32.925538-73.491692 73.097846-73.491693h146.195693v36.706462a36.233846 36.233846 0 0 0 36.470154 36.785231 36.233846 36.233846 0 0 0 36.548923-36.785231V147.298462h292.391384v36.706461a36.233846 36.233846 0 0 0 36.470154 36.785231 36.233846 36.233846 0 0 0 36.548923-36.785231V147.298462h146.195693c40.172308 0 73.097846 33.083077 73.097846 73.491692v73.412923zM256.236308 734.995692h73.019077a36.233846 36.233846 0 0 0 36.548923-36.78523 36.233846 36.233846 0 0 0-36.548923-36.706462h-73.019077a36.233846 36.233846 0 0 0-36.548923 36.706462 36.233846 36.233846 0 0 0 36.548923 36.78523z m438.429538-146.983384h73.097846A36.233846 36.233846 0 0 0 804.312615 551.384615a36.233846 36.233846 0 0 0-36.548923-36.78523H694.744615A36.233846 36.233846 0 0 0 658.195692 551.384615a36.233846 36.233846 0 0 0 36.470154 36.706462z m-438.429538 0h73.019077A36.233846 36.233846 0 0 0 365.804308 551.384615a36.233846 36.233846 0 0 0-36.548923-36.78523h-73.019077A36.233846 36.233846 0 0 0 219.687385 551.384615a36.233846 36.233846 0 0 0 36.548923 36.706462z m438.429538 146.983384h73.097846a36.233846 36.233846 0 0 0 36.548923-36.78523 36.233846 36.233846 0 0 0-36.548923-36.706462H694.744615a36.233846 36.233846 0 0 0-36.470153 36.706462 36.233846 36.233846 0 0 0 36.470153 36.78523z"
                fill="currentColor"
              ></path>
            </svg>
            活动时间：{{ activity_start_time }} - {{ activity_end_time }}
          </div>
        </div>
      </div>
      <div>
        <!-- Time Tabs -->
        <!-- <van-tabs
        v-model="selected"
		    @click="swichTabTItem"
        style="z-index: 50; height: 50px; line-height: 50px;">  原样式-->
        <van-tabs
          :sticky="true"
          v-model="selected"
          @click="swichTabTItem"
          style="z-index: 50"
        >
          <!-- 绑定一个子组件调用的事件 -->
          <van-tab v-for="(item, index) in NavList" :key="index" :title="item">
          </van-tab>
        </van-tabs>
        <!-- Time Tabs -->
        <van-tabs
          class="tabs-no-line"
          v-model="selecteItem"
          @click="swichTabTItem2"
          title-active-color="#ff4d4f"
          style="z-index: 50"
        >
          <!-- 绑定一个子组件调用的事件 -->
          <van-tab
            :title-style="tabSon"
            v-for="(item, index) in NavItemList"
            :key="index"
            :title="item.title"
          >
          </van-tab>
        </van-tabs>
      </div>
      <!-- <a href="#" class="detail-link" style="float:right;" @click="timeShow=true">自定义</a> -->
      <!-- <div class="ranking-header2">
       <div style="width: 100%;"><span v-if="myTime">{{myTime}}</span><a href="#" class="detail-link" style="float:right;" @click="searchTime">查询</a>
       <div class="flex items-center space-x-2">
        <el-date-picker
          v-model="my_start_time"
          type="date"
          placeholder="开始日期">
        </el-date-picker>
        <el-date-picker
          v-model="my_end_time"
          type="date"
          placeholder="结束日期">
        </el-date-picker>
        </div>
       </div>
    </div> -->

      <div class="ranking-header">
        <div>排名</div>
        <div style="flex: 1; margin-left: 20px">用户信息</div>
        <div>数量</div>
      </div>
      <!-- Ranking List -->
      <div class="space-y-2">
        <!-- Top 1 -->
        <!-- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
          <div class="relative mr-3">
            <div class="w-12 h-12 rounded-full bg-gradient-to-br from-yellow-400 to-yellow-600 flex items-center justify-center text-white font-bold">1</div>
            <img src="https://ai-public.mastergo.com/ai/img_res/2484947639aea3696cc04b92a768927b.jpg" 
                 alt="用户头像" 
                 class="absolute top-0 left-0 w-12 h-12 rounded-full object-cover">
          </div>
          <div class="flex-1">
            <div class="flex items-center justify-between">
              <div>
                <h3 class="font-medium">林小雅</h3>
                <p class="text-gray-500 text-xs">ID: 10086</p>
              </div>
              <div class="text-secondary font-bold">5,842</div>
            </div>
            <div class="mt-2 h-2 bg-gray-100 rounded-full overflow-hidden">
              <div class="h-full bg-gradient-to-r from-yellow-400 to-yellow-600 rounded-full" style="width: 100%"></div>
            </div>
          </div>
        </div> -->

        <!-- Top 2 -->
        <!-- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
          <div class="relative mr-3">
            <div class="w-12 h-12 rounded-full bg-gradient-to-br from-gray-300 to-gray-400 flex items-center justify-center text-white font-bold">2</div>
            <img src="https://ai-public.mastergo.com/ai/img_res/1b3d6af80df243206e891d93ea505ef0.jpg" 
                 alt="用户头像" 
                 class="absolute top-0 left-0 w-12 h-12 rounded-full object-cover">
          </div>
          <div class="flex-1">
            <div class="flex items-center justify-between">
              <div>
                <h3 class="font-medium">张明远</h3>
                <p class="text-gray-500 text-xs">ID: 10087</p>
              </div>
              <div class="text-secondary font-bold">4,756</div>
            </div>
            <div class="mt-2 h-2 bg-gray-100 rounded-full overflow-hidden">
              <div class="h-full bg-gradient-to-r from-gray-300 to-gray-400 rounded-full" style="width: 85%"></div>
            </div>
          </div>
        </div> -->

        <!-- Top 3 -->
        <!-- <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
          <div class="relative mr-3">
            <div class="w-12 h-12 rounded-full bg-gradient-to-br from-amber-500 to-amber-700 flex items-center justify-center text-white font-bold">3</div>
            <img src="https://ai-public.mastergo.com/ai/img_res/3447ff93d1f6b505a7f9166d2cf10f8f.jpg" 
                 alt="用户头像" 
                 class="absolute top-0 left-0 w-12 h-12 rounded-full object-cover">
          </div>
          <div class="flex-1">
            <div class="flex items-center justify-between">
              <div>
                <h3 class="font-medium">王丽华</h3>
                <p class="text-gray-500 text-xs">ID: 10088</p>
              </div>
              <div class="text-secondary font-bold">4,231</div>
            </div>
            <div class="mt-2 h-2 bg-gray-100 rounded-full overflow-hidden">
              <div class="h-full bg-gradient-to-r from-amber-500 to-amber-700 rounded-full" style="width: 75%"></div>
            </div>
          </div>
        </div> -->

        <!-- <van-loading  type="spinner" color="#1989fa" size="24px" vertical>加载中...</van-loading> -->
        <!-- Rank 4-10 -->
        <div v-if="userList.length > 0" class="space-y-2">
          <div v-for="(items, key) in userList" :key="key">
            <div class="rank-item">
              <!-- 排名徽章 -->
              <div class="rank-badge-wrapper">
                <div v-if="key == 0" class="rank-badge-circle rank-first">
                  <span class="rank-num white">{{ key + 1 }}</span>
                </div>
                <div v-else-if="key == 1" class="rank-badge-circle rank-second">
                  <span class="rank-num white">{{ key + 1 }}</span>
                </div>
                <div v-else-if="key == 2" class="rank-badge-circle rank-third">
                  <span class="rank-num white">{{ key + 1 }}</span>
                </div>
                <div v-else class="rank-badge rank-normal">
                  <span class="rank-num">{{ key + 1 }}</span>
                </div>
              </div>

              <!-- 用户信息 -->
              <div class="user-info-wrapper">
                <img :src="items.avatar" alt="用户头像" class="user-avatar" />
                <div class="user-details">
                  <div class="user-nickname">{{ items.nickname }}</div>
                  <div class="user-id">ID: {{ items.uid }}</div>
                </div>
              </div>

              <!-- 积分 -->
              <div class="score-wrapper">
                <div class="score-value">{{ items.amount }}</div>
              </div>
            </div>
          </div>
        </div>

        <!-- 空状态 -->
        <div v-else class="empty-state">
          <van-empty description="暂无排行数据" />
        </div>

        <!--           
          <div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
            <div class="w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center text-gray-600 font-medium mr-3">4</div>
            <img src="https://ai-public.mastergo.com/ai/img_res/59121156cb4de8e23afb45b55fbaea4c.jpg" 
                 alt="用户头像" 
                 class="w-10 h-10 rounded-full object-cover mr-3">
            <div class="flex-1">
              <div class="flex items-center justify-between">
                <div>
                  <h3 class="font-medium">陈志强</h3>
                  <p class="text-gray-500 text-xs">ID: 10089</p>
                </div>
                <div class="text-secondary font-bold">3,987</div>
              </div>
            </div>
          </div> -->
      </div>
    </main>

    <!-- 申请协议弹窗 -->
    <van-popup
      v-model="contentShow"
      :style="{ width: '100%', height: '100%', overflow: 'auto' }"
      position="right"
    >
      <van-nav-bar title="活动详情">
        <template #left>
          <span>
            <van-icon
              name="arrow-left"
              size="18"
              @click.native="hideAgreement"
              color="#333"
            />
          </span>
        </template>
      </van-nav-bar>
      <div v-html="content"></div>
    </van-popup>

    <!-- Tabbar -->
    <!-- <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100 z-10">
      <div class="grid grid-cols-4">
        <button class="py-3 flex flex-col items-center justify-center text-primary">
          <i class="fas fa-home fa-icon w-6 h-6 mb-1"></i>
          <span class="text-xs">首页</span>
        </button>
        <button class="py-3 flex flex-col items-center justify-center text-gray-500">
          <i class="fas fa-chart-line fa-icon w-6 h-6 mb-1"></i>
          <span class="text-xs">排行榜</span>
        </button>
        <button class="py-3 flex flex-col items-center justify-center text-gray-500">
          <i class="fas fa-trophy fa-icon w-6 h-6 mb-1"></i>
          <span class="text-xs">奖励</span>
        </button>
        <button class="py-3 flex flex-col items-center justify-center text-gray-500">
          <i class="fas fa-user fa-icon w-6 h-6 mb-1"></i>
          <span class="text-xs">我的</span>
        </button>
      </div>
    </div> -->
    <!-- 申请协议 -->
    <van-popup
      v-model="contentShow"
      :style="{ width: '100%', height: '100%', overflow: 'auto' }"
      position="right"
    >
      <van-nav-bar title="活动详情">
        <template #left>
          <span>
            <van-icon
              name="arrow-left"
              size="18"
              @click.native="hideAgreement"
              color="#333"
            />
          </span>
        </template>
      </van-nav-bar>
      <div v-html="content"></div>
    </van-popup>

    <!-- 我的排名 - 固定在底部（有数据时才显示） -->
    <div class="my-rank-container" v-if="showMyRank">
      <!-- 排行榜人数提示 -->
      <div class="rank-tip" v-if="showRankTip">
        <span class="tip-text">以上仅展示前 <span class="count-number">{{ currentRankCount }}</span> 名排行</span>
      </div>
      <div class="my-rank-card">
        <div class="my-rank-left">
          <div class="rank-badge">
            <span v-if="myRank !== '-' && myRank <= 3" class="rank-number top-rank">{{
              myRank
            }}</span>
            <span v-else-if="myRank !== '-'" class="rank-number">{{ myRank }}</span>
            <span v-else class="rank-number no-rank">暂无排名</span>
          </div>
          <img
            :src="myInfo.avatar || 'https://img01.yzcdn.cn/vant/cat.jpeg'"
            alt="我的头像"
            class="my-avatar"
          />
          <div class="my-info">
            <div class="my-nickname">{{ myInfo.nickname || "我的昵称" }}</div>
            <div class="my-id">ID: {{ myInfo.uid || "10000" }}</div>
          </div>
        </div>
        <div class="my-rank-right">
          <div class="my-score">{{ myInfo.amount !== undefined && myInfo.amount !== null ? myInfo.amount : 0 }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import index from "./index";
export default index;

// 这里可以添加响应式数据或方法
</script>

<style scoped>
.fa-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
body {
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: #fff5e6; /* 浅橙色背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.activity-card {
  background-color: #fff7f0;
  border-radius: 12px;
  padding: 10px;
  max-width: 500px;
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rules-label {
  color: #ff4d4f;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.detail-link {
  color: #3498db; /* 蓝色链接 */
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.detail-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

.rules-content {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 2px;
  position: relative;
}

.rules-content p {
  margin: 4px 0;
}

.time-tag {
  background-color: #fccda442;
  color: #e74c3c;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin-top: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .activity-card {
    padding: 10px;
  }

  .card-header {
    display: contents;
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-link {
    margin-top: 8px;
  }
}
.ranking-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
}
.ranking-header2 {
  display: flex;
  background-color: white;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
}
.tabSon {
  width: 5px;
}
.activity-goods-text {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #3498db;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.activity-goods-text:hover {
  color: #2980b9;
}

.activity-goods-newline {
  position: static !important;
  text-align: right;
  margin-top: 8px;
  margin-bottom: 0;
}

/* 我的排名固定在底部 */
.my-rank-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 6px 16px 6px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0)
  );
}

/* 排行榜人数提示样式 */
.rank-tip {
  text-align: center;
  margin-bottom: 4px;
  padding: 2px 0;
}

.tip-text {
  font-size: 15px;
  color: #666;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 16px;
  display: inline-block;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.count-number {
  color: #ff4d4f;
  font-size: 17px;
  font-weight: bold;
}

.my-rank-card {
  background: #fff7f0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-rank-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.rank-badge {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.rank-number {
  color: #ff4d4f;
  font-weight: bold;
  font-size: 16px;
}

.rank-number.top-rank {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.rank-number.no-rank {
  color: #999;
  font-size: 12px;
  font-weight: normal;
}

.my-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin-right: 12px;
}

.my-info {
  flex: 1;
}

.my-nickname {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.my-id {
  font-size: 12px;
}

.my-rank-right {
  text-align: right;
}

.my-score {
  color: #ff4d4f;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 2px;
}

.score-label {
  color: #ff4d4f;
  font-size: 12px;
}

/* 排行榜列表优化样式 */
.rank-item {
  background: white;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
}

.rank-badge-wrapper {
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rank-badge-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-badge-circle .rank-num.white {
  color: #ffffff;
  font-weight: 700;
}

.rank-first {
  background: #ff4d4f; /* 红色 */
}

.rank-second {
  background: #ebe8e8; /* 中性灰 */
}

.rank-third {
  background: #cd7f32; /* 棕色 */
}

.rank-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rank-badge.rank-1 .rank-num {
  color: #ffd700;
  font-weight: bold;
  font-size: 14px;
  margin-top: 2px;
}

.rank-badge.rank-2 .rank-num {
  color: #c0c0c0;
  font-weight: bold;
  font-size: 14px;
  margin-top: 2px;
}

.rank-badge.rank-3 .rank-num {
  color: #cd7f32;
  font-weight: bold;
  font-size: 14px;
  margin-top: 2px;
}

.rank-badge.rank-normal {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-badge.rank-normal .rank-num {
  color: #999;
  font-weight: 500;
  font-size: 14px;
}

.user-info-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  border: 2px solid #f0f0f0;
}

.user-details {
  flex: 1;
}

.user-nickname {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.user-id {
  font-size: 12px;
  color: #999;
}

.score-wrapper {
  text-align: right;
  margin-left: 8px;
}

.score-value {
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4f;
  margin-bottom: 2px;
}

.score-wrapper .score-label {
  font-size: 11px;
  color: #999;
}

/* 空状态 */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  background: white;
  border-radius: 12px;
  margin: 12px 0;
}

/* 资讯轮播样式 */
.news-bar-wrapper {
  display: flex;
  align-items: center;
  background: #fff7f0;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.news-label {
  color: #ff4d4f;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin-right: 8px;
  padding-right: 8px;
  border-right: 1px solid #e5e7eb;
}

.news-icon {
  margin-right: 6px;
  color: #ff4d4f;
  font-size: 16px;
  vertical-align: -2px;
}

.news-content {
  flex: 1;
  overflow: hidden;
}

/* 仅当前页面的资讯轮播高度调整为24px */
.news-content >>> .van-notice-bar {
  height: 24px !important;
  line-height: 24px !important;
}

/* 垂直轮播样式 */
.notice-swipe {
  height: 24px;
  line-height: 24px;
}

/* 三个按钮样式 */
.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.action-btn {
  flex: 1;
  background: #ff4d4f;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn span {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.action-btn.text-only {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}

.time-icon {
  margin-right: 6px;
  color: #ff4d4f;
  vertical-align: -2px;
}

.time-svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}

/* 去掉 van-tabs 的下划线（滑块）效果，仅保留文字变色 */
.tabs-no-line >>> .van-tabs__line {
  display: none;
}

/* 二级 tabs 容器浅灰背景 */
.tabs-no-line {
  background: #ebe8e8;
 
}

/* 仅二级 tabs（带 tabs-no-line 的）去掉 nav 白色背景，不影响其他 van-tabs */
.tabs-no-line >>> .van-tabs__nav {
  background-color: transparent !important;
}

/* 仅二级 tabs（带 tabs-no-line 的）去掉 tab 的 padding，不影响其他 van-tabs */
.tabs-no-line >>> .van-tabs__wrap--scrollable .van-tab {
  padding: 0 !important;
}
</style>
